/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_READER_INFO")
public class BookReaderInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "READER_ID")
    private Long readerId;
    
    @Column(name = "READER_NAME",length = 20)
    private String readerName;
    
    @Column(name = "READER_SEX",length = 1)
    private Short readerSex;
    
    @Column(name = "READER_BAR_CODE",length = 30)
    private String readerBarCode;
    
    @Column(name = "READER_TYPE",length = 20)
    private String readerType;
    
    @Column(name = "READER_BIRTH")
    @Temporal(TemporalType.DATE)
    private Date readerBirth;
    
    @Column(name = "READER_CARD_TYPE")
    private String readerCardType;
    
    @Column(name = "READER_CARD_ID")
    private String readerCardId;
    
    @Column(name = "READER_PHONE")
    private String readerPhone;
    
    @Column(name = "READER_EMAIL")
    private String readerEmail;
    
    @Column(name = "READER_INTRODUCTION")
    private String readerIntroduction;

    public Long getReaderId() {
        return readerId;
    }

    public void setReaderId(Long readerId) {
        this.readerId = readerId;
    }

    public String getReaderName() {
        return readerName;
    }

    public void setReaderName(String readerName) {
        this.readerName = readerName;
    }

    public Short getReaderSex() {
        return readerSex;
    }

    public void setReaderSex(Short readerSex) {
        this.readerSex = readerSex;
    }

    public String getReaderBarCode() {
        return readerBarCode;
    }

    public void setReaderBarCode(String readerBarCode) {
        this.readerBarCode = readerBarCode;
    }

    public String getReaderType() {
        return readerType;
    }

    public void setReaderType(String readerType) {
        this.readerType = readerType;
    }

    public Date getReaderBirth() {
        return readerBirth;
    }

    public void setReaderBirth(Date readerBirth) {
        this.readerBirth = readerBirth;
    }

    public String getReaderCardType() {
        return readerCardType;
    }

    public void setReaderCardType(String readerCardType) {
        this.readerCardType = readerCardType;
    }

    public String getReaderCardId() {
        return readerCardId;
    }

    public void setReaderCardId(String readerCardId) {
        this.readerCardId = readerCardId;
    }

    public String getReaderPhone() {
        return readerPhone;
    }

    public void setReaderPhone(String readerPhone) {
        this.readerPhone = readerPhone;
    }

    public String getReaderEmail() {
        return readerEmail;
    }

    public void setReaderEmail(String readerEmail) {
        this.readerEmail = readerEmail;
    }

    public String getReaderIntroduction() {
        return readerIntroduction;
    }

    public void setReaderIntroduction(String readerIntroduction) {
        this.readerIntroduction = readerIntroduction;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"BookReaderInfo\":{\"readerId\":");
        builder.append(readerId);
        builder.append(", readerName\":");
        builder.append(readerName);
        builder.append(", readerSex\":");
        builder.append(readerSex);
        builder.append(", readerBarCode\":");
        builder.append(readerBarCode);
        builder.append(", readerType\":");
        builder.append(readerType);
        builder.append(", readerBirth\":");
        builder.append(readerBirth);
        builder.append(", readerCardType\":");
        builder.append(readerCardType);
        builder.append(", readerCardId\":");
        builder.append(readerCardId);
        builder.append(", readerPhone\":");
        builder.append(readerPhone);
        builder.append(", readerEmail\":");
        builder.append(readerEmail);
        builder.append(", readerIntroduction\":");
        builder.append(readerIntroduction);
        builder.append("}");
        return builder.toString();
    }
    
    
    
}
